package leetcode;

public class Code006_SquareIsWhite {

    public static boolean squareIsWhite(String coordinates) {
        int sum = Integer.valueOf(coordinates.charAt(0) - 'a') +
                    Integer.valueOf(coordinates.charAt(1));
        if(sum % 2 == 0){
            return true;
        }
        return false;
    }

    public static void main(String[] args) {

        String coordinates = "a1";
        boolean res = squareIsWhite(coordinates);
        System.out.println(res);

    }
}
